package com.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * @author YeaH
 * @create 2022/2/14 16:17
 */
@SpringBootApplication
@EnableResourceServer
@EnableDiscoveryClient
public class AuthServer2Application {
    public static void main(String[] args) {
        // SpringApplication.run(AuthServer2Application.class,args);
        SpringApplication springApplication = new SpringApplication(AuthServer2Application.class);
        springApplication.setAllowBeanDefinitionOverriding(true);
        springApplication.run(args);
    }
}
